package org.example;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import org.springframework.context.ConfigurableApplicationContext;

import java.util.Arrays;

/**
 * @Author : zhangbo
 * @data : 2024/7/26
 * @description :
 */
@Slf4j
//@SpringBootApplication(exclude= {DataSourceAutoConfiguration.class})
@SpringBootApplication
@MapperScan("org.example.MyBatisPlus.Mapper")
public class Application {
    public static void main(String[] args) {
//        System.out.println(Arrays.toString(args));
//        String []str=new String[1];
//        //指定端口，临时更改
//        str[0]="--server.port=9999";
        ConfigurableApplicationContext con = SpringApplication.run(Application.class,args);
        System.out.println(con);
        log.info("启动完成!");
    }
}